Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mongo-express command #19

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

julienloizelet
Copy link
Collaborator

@julienloizelet julienloizelet commented Oct 30, 2024

The Issue

There was no issue: I wanted to add a command to launch Mongo Express in the browser

How This PR Solves The Issue

Add the mongo-express command

Manual Testing Instructions

ddev add-on get https://github.com/julienloizelet/ddev-mongo/tarball/feat/mongo-express-command
ddev restart
ddev mongo-express

Automated Testing Overview

mongo-express command is now tested in test.bats

Related Issue Link(s)

Release/Deployment Notes

@julienloizelet julienloizelet requested a review from rfay October 30, 2024 02:43
Copy link
Member

@stasadev stasadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this PR and confirmed that ddev mongo-express works, thank you!


- The php extension (phpX.X-mongodb) is set up in `.ddev/config.mongo.yaml` using `webimage_extra_packages`. If you have an earlier `webimage_extra_packages` in your config.yaml, this will override it. You may want to edit your config.yaml to do what you want and remove the config.mongo.yaml.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have an earlier webimage_extra_packages in your config.yaml, this will override it.

This is not true, webimage_extra_packages are merged from all configs, this should be removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I will remove this.

Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me, thanks for all the work on it. I made a couple of minor suggestions, using ddev_version_constraint etc.

@@ -2,38 +2,58 @@

## What is ddev-mongo?

This repository provides Mongo and Mongo Express add-on to [DDEV](https://ddev.readthedocs.io).
This repository provides Mongo and Mongo Express add-on to [DDEV](https://ddev.readthedocs.io/en/stable/).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This repository provides Mongo and Mongo Express add-on to [DDEV](https://ddev.readthedocs.io/en/stable/).
This repository is an add-on that provides Mongo and Mongo Express for [DDEV](https://ddev.readthedocs.io/en/stable/).

- |
#ddev-nodisplay
#ddev-description:Checking DDEV version
(ddev debug capabilities | grep corepack >/dev/null) || (echo "Please upgrade DDEV to v1.23+ to enable launching." && false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than this approach, it's easier now to use ddev_version_constraint in the config.mongo.yaml if there is one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I should have said ddev_version_constraint in the install.yaml., https://github.com/ddev/ddev-addon-template/blob/main/install.yaml#L85

@julienloizelet julienloizelet merged commit cec03c8 into ddev:main Oct 31, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants